//
//  WaterFlowLayout.h
//  UILessonWaterFlow
//
//  Created by 赵永泉 on 15/9/17.
//  Copyright (c) 2015年 蓝欧科技. All rights reserved.
//

#import <UIKit/UIKit.h>
@class WaterFlowLayout;

@protocol UICollectionViewDelegateWaterFlowLayout <NSObject>

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(WaterFlowLayout *)layout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;

@end


@interface WaterFlowLayout : UICollectionViewFlowLayout

@property (nonatomic, assign) id<UICollectionViewDelegateWaterFlowLayout> delegate;
- (instancetype)initWithNumbersOfColumns:(NSUInteger)columns;

@end
